/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Allopathicand Osteopathic Physicians Provider Codes Member20</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getAllopathicandOsteopathicPhysiciansProviderCodesMember20()
 * @model extendedMetaData="name='AllopathicandOsteopathicPhysiciansProviderCodes_._member_._20'"
 * @generated
 */
public enum AllopathicandOsteopathicPhysiciansProviderCodesMember20 implements Enumerator {
	/**
	 * The '<em><b>200000000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_200000000X_VALUE
	 * @generated
	 * @ordered
	 */
	_200000000X(0, "_200000000X", "200000000X"),

	/**
	 * The '<em><b>208U00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_208U00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_208U00000X(1, "_208U00000X", "208U00000X"),

	/**
	 * The '<em><b>208C00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_208C00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_208C00000X(2, "_208C00000X", "208C00000X"),

	/**
	 * The '<em><b>208D00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_208D00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_208D00000X(3, "_208D00000X", "208D00000X"),

	/**
	 * The '<em><b>208M00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_208M00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_208M00000X(4, "_208M00000X", "208M00000X"),

	/**
	 * The '<em><b>209800000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_209800000X_VALUE
	 * @generated
	 * @ordered
	 */
	_209800000X(5, "_209800000X", "209800000X"),

	/**
	 * The '<em><b>207T00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207T00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_207T00000X(6, "_207T00000X", "207T00000X"),

	/**
	 * The '<em><b>204D00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_204D00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_204D00000X(7, "_204D00000X", "204D00000X"),

	/**
	 * The '<em><b>204C00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_204C00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_204C00000X(8, "_204C00000X", "204C00000X"),

	/**
	 * The '<em><b>207W00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207W00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_207W00000X(9, "_207W00000X", "207W00000X"),

	/**
	 * The '<em><b>204E00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_204E00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_204E00000X(10, "_204E00000X", "204E00000X"),

	/**
	 * The '<em><b>208800000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_208800000X_VALUE
	 * @generated
	 * @ordered
	 */
	_208800000X(11, "_208800000X", "208800000X");

	/**
	 * The '<em><b>200000000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>200000000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_200000000X
	 * @model literal="200000000X"
	 * @generated
	 * @ordered
	 */
	public static final int _200000000X_VALUE = 0;

	/**
	 * The '<em><b>208U00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>208U00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_208U00000X
	 * @model literal="208U00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _208U00000X_VALUE = 1;

	/**
	 * The '<em><b>208C00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>208C00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_208C00000X
	 * @model literal="208C00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _208C00000X_VALUE = 2;

	/**
	 * The '<em><b>208D00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>208D00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_208D00000X
	 * @model literal="208D00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _208D00000X_VALUE = 3;

	/**
	 * The '<em><b>208M00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>208M00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_208M00000X
	 * @model literal="208M00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _208M00000X_VALUE = 4;

	/**
	 * The '<em><b>209800000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>209800000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_209800000X
	 * @model literal="209800000X"
	 * @generated
	 * @ordered
	 */
	public static final int _209800000X_VALUE = 5;

	/**
	 * The '<em><b>207T00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207T00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207T00000X
	 * @model literal="207T00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _207T00000X_VALUE = 6;

	/**
	 * The '<em><b>204D00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>204D00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_204D00000X
	 * @model literal="204D00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _204D00000X_VALUE = 7;

	/**
	 * The '<em><b>204C00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>204C00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_204C00000X
	 * @model literal="204C00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _204C00000X_VALUE = 8;

	/**
	 * The '<em><b>207W00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207W00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207W00000X
	 * @model literal="207W00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _207W00000X_VALUE = 9;

	/**
	 * The '<em><b>204E00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>204E00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_204E00000X
	 * @model literal="204E00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _204E00000X_VALUE = 10;

	/**
	 * The '<em><b>208800000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>208800000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_208800000X
	 * @model literal="208800000X"
	 * @generated
	 * @ordered
	 */
	public static final int _208800000X_VALUE = 11;

	/**
	 * An array of all the '<em><b>Allopathicand Osteopathic Physicians Provider Codes Member20</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final AllopathicandOsteopathicPhysiciansProviderCodesMember20[] VALUES_ARRAY =
		new AllopathicandOsteopathicPhysiciansProviderCodesMember20[] {
			_200000000X,
			_208U00000X,
			_208C00000X,
			_208D00000X,
			_208M00000X,
			_209800000X,
			_207T00000X,
			_204D00000X,
			_204C00000X,
			_207W00000X,
			_204E00000X,
			_208800000X,
		};

	/**
	 * A public read-only list of all the '<em><b>Allopathicand Osteopathic Physicians Provider Codes Member20</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<AllopathicandOsteopathicPhysiciansProviderCodesMember20> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Allopathicand Osteopathic Physicians Provider Codes Member20</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AllopathicandOsteopathicPhysiciansProviderCodesMember20 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			AllopathicandOsteopathicPhysiciansProviderCodesMember20 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Allopathicand Osteopathic Physicians Provider Codes Member20</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AllopathicandOsteopathicPhysiciansProviderCodesMember20 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			AllopathicandOsteopathicPhysiciansProviderCodesMember20 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Allopathicand Osteopathic Physicians Provider Codes Member20</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static AllopathicandOsteopathicPhysiciansProviderCodesMember20 get(int value) {
		switch (value) {
			case _200000000X_VALUE: return _200000000X;
			case _208U00000X_VALUE: return _208U00000X;
			case _208C00000X_VALUE: return _208C00000X;
			case _208D00000X_VALUE: return _208D00000X;
			case _208M00000X_VALUE: return _208M00000X;
			case _209800000X_VALUE: return _209800000X;
			case _207T00000X_VALUE: return _207T00000X;
			case _204D00000X_VALUE: return _204D00000X;
			case _204C00000X_VALUE: return _204C00000X;
			case _207W00000X_VALUE: return _207W00000X;
			case _204E00000X_VALUE: return _204E00000X;
			case _208800000X_VALUE: return _208800000X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private AllopathicandOsteopathicPhysiciansProviderCodesMember20(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //AllopathicandOsteopathicPhysiciansProviderCodesMember20
